package io.gitee.zhangbinhub.admin.log.base;

import io.swagger.annotations.ApiModelProperty;

public abstract class BaseLogEntity {
    @ApiModelProperty(name = "路由消息随机ID")
    private String logId = "";

    @ApiModelProperty(name = "客户端ip")
    private String remoteIp = "";

    @ApiModelProperty(name = "网关ip")
    private String gatewayIp = null;

    @ApiModelProperty(name = "请求路径")
    private String path = null;

    @ApiModelProperty(name = "路由服务id")
    private String serverId = null;

    @ApiModelProperty(name = "目标服务ip")
    private String targetIp = null;

    @ApiModelProperty(name = "目标服务url")
    private String targetUri = null;

    @ApiModelProperty(name = "目标服务请求路径")
    private String targetPath = null;

    @ApiModelProperty(name = "跟踪ID")
    private String traceId = null;

    @ApiModelProperty(name = "请求方法")
    private String method = "";

    @ApiModelProperty(name = "请求token")
    private String token = null;

    @ApiModelProperty(name = "客户端id")
    private String clientId = null;

    @ApiModelProperty(name = "客户端名称")
    private String clientName = null;

    @ApiModelProperty(name = "客户端标识")
    private String identify = null;

    @ApiModelProperty(name = "请求时间")
    private Long requestTime = System.currentTimeMillis();

    @ApiModelProperty(name = "是否是申请token的请求")
    private Boolean applyToken = false;

    @ApiModelProperty(name = "处理时长")
    private Long processTime = null;

    @ApiModelProperty(name = "响应时间")
    private Long responseTime = null;

    @ApiModelProperty(name = "响应状态码")
    private Integer responseStatus = null;

    @ApiModelProperty(name = "操作用户id")
    private String userId = null;

    @ApiModelProperty(name = "操作用户登录号")
    private String loginNo = null;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginNo() {
        return loginNo;
    }

    public void setLoginNo(String loginNo) {
        this.loginNo = loginNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getResponseStatus() {
        return responseStatus;
    }

    public void setResponseStatus(Integer responseStatus) {
        this.responseStatus = responseStatus;
    }

    public Long getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(Long responseTime) {
        this.responseTime = responseTime;
    }

    public Long getProcessTime() {
        return processTime;
    }

    public void setProcessTime(Long processTime) {
        this.processTime = processTime;
    }

    public Boolean getApplyToken() {
        return applyToken;
    }

    public void setApplyToken(Boolean applyToken) {
        this.applyToken = applyToken;
    }

    public Long getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Long requestTime) {
        this.requestTime = requestTime;
    }

    public String getIdentify() {
        return identify;
    }

    public void setIdentify(String identify) {
        this.identify = identify;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public String getTargetPath() {
        return targetPath;
    }

    public void setTargetPath(String targetPath) {
        this.targetPath = targetPath;
    }

    public String getTargetUri() {
        return targetUri;
    }

    public void setTargetUri(String targetUri) {
        this.targetUri = targetUri;
    }

    public String getTargetIp() {
        return targetIp;
    }

    public void setTargetIp(String targetIp) {
        this.targetIp = targetIp;
    }

    public String getServerId() {
        return serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getGatewayIp() {
        return gatewayIp;
    }

    public void setGatewayIp(String gatewayIp) {
        this.gatewayIp = gatewayIp;
    }

    public String getRemoteIp() {
        return remoteIp;
    }

    public void setRemoteIp(String remoteIp) {
        this.remoteIp = remoteIp;
    }

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    @ApiModelProperty(name = "操作用户名称")
    private String userName = null;
}
